/*
  Name: DeadProxyNetworkHandler.h
  Copyright:
  Author: Carl Chatfield
  Date: 19/01/08 15:40
  Description: Manages network events
*/

#ifndef __DEADPROXYNETWORKHANDLER_h__
#define __DEADPROXYNETWORKHANDLER_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif


#include "windows.h"
#include "winsock.h"
#include "DeadProxySocketInfoHandler.h"
#include "DeadProxyClientEvent.h"
#define WM_WSAASYNC (WM_USER + 10)
class NetworkHandler
{
    private:
        SOCKET LoginListenSocket;
        SOCKET GameListenSocket;
        SocketInfoHandler * SocketInfos;
  
    public:
        int InitWinsock();
        int InitServers();
        void Message(WPARAM wParam, LPARAM lParam);
        NetworkHandler();
};

#endif
